//
//  DataType.swift
//  swiftStudy
//
//  Created by unisedu on 16/4/1.
//  Copyright © 2016年 CaoFei. All rights reserved.
//

import UIKit
/**
 数据类型
 */
class DataType: NSObject {

    
    func dataType(){
        let str = "Hello, playground"
        debugPrint(str)
        let minValue = Int.min
        let maxValue = Int.max
        debugPrint("minintValue=\(minValue),maxintValue=\(maxValue)")
        
        
        let min8Value = Int8.min
        let max8Value = Int8.max
        debugPrint("minint8Value=\(min8Value),maxint8Value=\(max8Value)")
        
        let value1=123.4
        let value2:Float=33.2
        let value3:Int=55
        let value4:Int8=127
        debugPrint("value1=\(value1),value2=\(value2),value3=\(value3),value1=\(value4)")
        //进制
        let decimalInt=20
        let binaryInt=0b1100
        let octalInt=0o21
        let hexInt = 0x11
        debugPrint(decimalInt)
        debugPrint(binaryInt)
        debugPrint(octalInt)
        debugPrint(hexInt)
        
        //可读性
        let value5 = 12_000_000
        let value6 = 1_000_000.000_000_1
        debugPrint(value5)
        debugPrint(value6)
        //bool
        let bool_value=false
        if  bool_value{
            debugPrint("1")
        }else{
            debugPrint("0")
        }
        
    }
    
}
